package com.frank.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.frank.model.entity.contest.ContestProblem;
import com.frank.oj.model.vo.ContestProblemVO;
import com.frank.oj.model.vo.ProblemFullScreenListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author frank
 * @Date 2024/4/7
 */
@Mapper
public interface ContestProblemMapper extends BaseMapper<ContestProblem> {
    List<ContestProblemVO> getContestProblemList(@Param("cid") Long cid,
                                                 @Param("startTime") Date startTime,
                                                 @Param("endTime") Date endTime,
                                                 @Param("sealTime") Date sealTime,
                                                 @Param("isAdmin") boolean isAdmin,
                                                 @Param("adminList") List<String> adminList,
                                                 @Param("isHideContestEndJudge") boolean isHideContestEndJudge);

    List<ProblemFullScreenListVO> getContestFullScreenProblemList(@Param("cid") Long cid);
}
